﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Motoball
{
    
    public class ContentStorage
    {
        
        private static float smallRingSize = 400f;
        private static float mediumRingSize = 2860f;
        private static float largeRingSize = 1000f;
        private static float currentRingSize = mediumRingSize;
        private static float menuRingSize = 100f;
        private static float defaultBallSpeed = 100f;
        private static float defaultPaddleSpeed = 100f;
        private static float defaultPaddleFriction = 100f;
        private static int scoreLimit = 10;
        public static float bloomIntensity = 1.00f;
        public static float baseIntensity = 1.00f;
        //numberplayers - 1
        public static int numberPlayers = 1;
        public static int screenHeight;
        public static int screenWidth;


        #region Properties
        public static float SmallRingSize
        {
            get { return smallRingSize; }
        }
        public static float MediumRingSize
        {
            get { return mediumRingSize; }
        }
        public static float LargeRingSize
        {
            get { return largeRingSize; }
        }
        public static float MenuRingSize
        {   get { return menuRingSize; } }
        public static float DefaultBallSpeed
        {   get { return defaultBallSpeed; } }
        public static float DefaultPaddleSpeed
        {   get { return defaultPaddleSpeed; } }
        public static float DefaultPaddleFriction
        {   get { return defaultPaddleFriction; } }
        public static float CurrentRingSize
        {
            get { return currentRingSize; }
            set { currentRingSize = value; }
        }
        public static int ScoreLimit
        {
            get { return scoreLimit; }
            set { scoreLimit = value; }
        }
        
        #endregion

        #region Methods
        /// <summary>
        /// set ringsize by default ringsize-values (0 - small,1 - medium
        /// ,2 - large)
        /// </summary>
        /// <param name="defaultRingSize"></param>
        public static void SetRingSizeByDefault(int defaultRingSize)
        {
            switch (defaultRingSize)
            {
                case 0:
                    CurrentRingSize = SmallRingSize;
                    break;
                case 1:
                    CurrentRingSize = MediumRingSize;
                    break;
                case 2:
                    CurrentRingSize = LargeRingSize;
                    break;
                default:
                    break;
            }
        }
        #endregion


    }
}
